define(function(require, exports, module) {
	// vue，模板路由配置
	exports = {
		// 页面数据
		data: function() {
			return {
				test4: "测试消息4",
				num: 0,
				userInfo: {
					id: 0,
					text: '文字'
				},
				ruserInfo: $rootScope.state.userInfo,
				data: {}
			}
		},
		// 数据监听
		watch: {},
		// 方法
		methods: {
			addUser: function() {
				this.num++;
				this.userInfo.id = this.num;
				this.userInfo.text = '文字' + this.num;
				$rootScope.dispatch("setUserLogin", this.userInfo);
			},
			loginOut: function() {
				$rootScope.commit('loginOut');
			},
			addUserLoginInfo: function() {
				var thisx = this;
				var params = {
					phone: "18723896736",
					email: "773213931@qq.com",
					username: "billdowney",
					password: "950707",
					encryptPassword: "123456",
					"userBasicInfo.nickname": "超级小富翁",
					"userBasicInfo.headimg": "",
					"userBasicInfo.info": "这是一段简单的简介"
				};
				var optionsParams = {
					projectPath: null,
					tiemout: 0
				};
				$indexScope.httpSend("userManage/addLoginUserInfo", params, function(data) {
					thisx.data = data;
					console.log(data);
				}, function(data) {
					console.log(data);
				}, optionsParams);
			}
		},
		// 导航钩子-页面渲染完运行的方法
		mounted: function() {
			console.log($indexScope.currentRouteScope);
			console.log($indexScope.currentRouteScope.test3.test3);
			$indexScope.currentRouteScope.test3.test3 = "测试数据：" + new Date();
			console.log($indexScope.currentRouteScope.test3.test3);
		}
	};
	return exports;
});